package com.xt.bean;

import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 数据库（章节表）
 * Created by XT on 2018/5/4.
 */
@Document(collection = "tb_section")
public class Section extends BaseBean{

    private String name;//：章节名
    private String fatherId;//父id
    private Boolean hasChild;//是否有子节点  新增/删除/时要维护
    private String courseId;//：课程id
    private String courseName;//：课程名
    private String teacherId;//：教师员id
    private String teacherName;//：教师名称
    private Integer node;//类型
    private String nodeId;//知识点

    private List<Section> childs;//子节点集合

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public Integer getNode() {
        return node;
    }

    public void setNode(Integer node) {
        this.node = node;
    }

    public List<Section> getChilds() {
        return childs;
    }

    public void setChilds(List<Section> childs) {
        this.childs = childs;
    }

    public Boolean getHasChild() {
        return hasChild;
    }

    public void setHasChild(Boolean hasChild) {
        this.hasChild = hasChild;
    }

    public String getFatherId() {
        return fatherId;
    }

    public void setFatherId(String fatherId) {
        this.fatherId = fatherId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }
}
